package com.bw.usercenter.adapter

import com.bumptech.glide.Glide
import com.bw.usercenter.R
import com.bw.usercenter.model.protocol.resp.RespGoodEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class MyItemAdapter( data: MutableList<RespGoodEntity.Data>?) :
    BaseQuickAdapter<RespGoodEntity.Data, BaseViewHolder>(R.layout.item, data) {


    override fun convert(holder: BaseViewHolder, item: RespGoodEntity.Data) {
        Glide.with(context).load(item.PictUrl).into(holder.getView(R.id.item_img))
        holder.setText(R.id.item_text,item.ShortTitle)
        holder.setText(R.id.item_money,"￥"+item.ZkFinalPrice)
        holder.setText(R.id.item_name,item.Title)
    }
}